From 2627dd170ef33e82c83bf251561120da7ff56642 Mon Sep 17 00:00:00 2001 From: robertlipe Date: Wed, 1 Jan 2014 19:22:08 +0000 Subject: [PATCH] Replace toAscii with toLatin in garmin. --- gpsbabel/garmin.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gpsbabel/garmin.cc b/gpsbabel/garmin.cc index a0d81268b..111e4cd20 100644 --- a/gpsbabel/garmin.cc +++ b/gpsbabel/garmin.cc @@ -1087,13 +1087,13 @@ route_waypt_pr(const waypoint* wpt) // enforce that here, since jeeps doesn't. // // This was strncpy(rte->ident, wpt->shortname, sizeof(rte->ident)); - char* s, *d; + char* d; d = rte->ident; #if NEW_STRINGS for (int idx = 0; idx < wpt->shortname.length(); idx++) { - int c = wpt->shortname[idx].toAscii(); + int c = wpt->shortname[idx].toLatin1(); #else - for (s = wpt->shortname; *s; s++) { + for (char* s = wpt->shortname; *s; s++) { int c = *s; #endif if (receiver_must_upper && isalpha(c)) { -- 2.30.2